﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;

namespace CapaDatos
{
    public class Conexion
    {
        public static SqlConnection getConexion()
        {
            SqlConnection cn = null;
            try {
                cn = new SqlConnection();
                cn.ConnectionString = @"Data Source=.;Initial Catalog=bdDADVentas;Integrated Security=True";
            
            }catch(Exception e){
                System.Console.Write("Error en la Conexion "+e.Message);
            }
            return cn;            
        }
    }
}
